package com.mach.platform.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 底布自主检查记录表
 */
@Data
@Entity
@Table(name = "undercloth_autonomous_inspection_record_table")
public class UnderclothAutonomousInspectionRecordTable  implements Serializable {

    private static final long serialVersionUID = 1L;
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    private Long id;

    @Column(name = "specs")
    private String specs;

    @Column(name = "class_ban")
    private String classBan;

    @Column(name = "cloth_roll_number")
    private String clothRollNumber;

    @Column(name = "width_before_send_standard")
    private String widthBeforeSendStandard;

    @Column(name = "width_before_send_actual")
    private String widthBeforeSendActual;

    @Column(name = "thickness_standard")
    private String thicknessStandard;

    @Column(name = "thickness_before_send_left")
    private String thicknessBeforeSendLeft;

    @Column(name = "thickness_before_send_right")
    private String thicknessBeforeSendRight;

    @Column(name = "thickness_before_coating_left")
    private String thicknessBeforeCoatingLeft;

    @Column(name = "thickness_before_coating_right")
    private String thicknessBeforeCoatingRight;

    @Column(name = "actual_fluffy_number")
    private String actualFluffyNumber;

    @Column(name = "surface_quality_and_wool_condition")
    private String surfaceQualityAndWoolCondition;

    @Column(name = "width_before_coating")
    private String widthBeforeCoating;

    @Column(name = "out_30_m_width")
    private String out_30_MWidth;

    @Column(name = "output_20_branches_width")
    private String output_20_BranchesWidth;

    @Column(name = "specifications_put_in")
    private String specificationsPutIn;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "time")
    private LocalDateTime time;

    @Column(name = "section_chief")
    private String sectionChief;

    @Column(name = "shift_supervisor")
    private String shiftSupervisor;

    @Column(name = "foreman")
    private String foreman;

}
